// dlg.txt

//		mark_quest_dest(zone,x,y,layer,quest);
//		cancel_out_fight(0,short kill_enc);
//		make_outdoor_enc(short x,short y,short which_enc);
//		set_out_fight_field(short which_field);
// 				which_field is 0-20

begintalkscript;

variables;

short this_sec = 28;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "The mountains of the Rokaj are shot through with many miles of natural tunnels and mine shafts. Sometimes, they open up into an enormous natural cavern. A path leads to the west. Someone has placed the occasional torch along it, making travel possible.";
	text2 = "This natural dome spreads far out of sight to the northwest. It is dotted with a few glowing crystals, but most of it is lost in darkness. You do see the edge of a forest of large, fungal trees, and you smell mushrooms and rot.";
	text3 = "The heat from the volcanic vents to the south has risen up to here, letting an alien forest grow. Ominous figures float among the _trees._";
	code =
		sf(100 + this_sec,1,1);
		sf(80,17,1);
		run_game_hardcode(1015);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "You search the bodies, looking for hints of who they were. You find nothing but a little money.";
	text2 = "You drag the bodies away and hide them under a pile of rotting vegetation. If they have friends, this will keep them from seeking vengeance for a while.";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There are a few humans in black robes sitting around this fire. You easily see the outlines of the weapons hidden under their clothes.";
	text2 = "When you approach them, they don't respond. No greetings, no attack. They just chew on their rations and stare into the fire.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Join them.";
	text1 = "You sit with them. They move to make room for you. They silently give you cups of water and a few bits of stale bread. They remain silent.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Attack!";
	text1 = "They actually didn't expect that. You draw your blade and charge toward them. You realize, too late, that they may have been waiting for you for peaceful reasons.";
	action = END_TALK;
	code =
		ro_faction(-3);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Just go.";
	text1 = "You turn and walk away. As you go, one of them looks at you. Then he returns his attention to the fire.";
	action = END_TALK;
	code =
		cancel_out_fight(0,0);
	break;
		
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_So. Who are you?_";
	text1 = "One of them says, in a soft voice, _Secrecy is our way._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about these caves._";
	text1 = "One of them whispers, _Our home is here. We avoid the woods. The tunnels are full of mystery._";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_Why are you here?_";
	text1 = "One says, _We watch the path, and we watch for you._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_You knew I was coming?_";
	text1 = "One of them says, _Yes._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_Why are you waiting for me?_";
	text1 = "One says, _You are wanted. To the west. If you are peaceful, you will learn._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = gf(59,1) > 0;
	question = "_If you are Geld Nas, I've already been to Deep Post Anelace._";
	text1 = "All of them look at you. One of them grumbles, _So they left us to waste our time out here. Bah!_";
	text2 = "Without another word, they pack up their things. It only takes a minute, and they they head west.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
	break;
	
begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_Who are you?_";
	text1 = "_You should know what our cell is. If not, you will learn._";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_What will I find?_";
	text1 = "Someone in the shadows says, in a deep voice, _Deep Post Anelace, and learning._";
	text2 = "Without another word, they pack up their things. It only takes a minute, and they they head west.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
	break;

	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				